home *** CD-ROM | disk | FTP | other *** search
/ Games of Daze / Infomagic - Games of Daze (Summer 1995) (Disc 1 of 2).iso / x2ftp / msdos / libs / knowhow4 / blkmenu.h < prev    next >
C/C++ Source or Header  |  1994-10-10  |  909b  |  33 lines

  1. /*  BLKMENU.H    Block Menu - Menu with buttons. After exiting returns number
  2.         of item in global_num. See manual for details.
  3. */
  4.  
  5. #ifndef __BLOCK_MENU_H_
  6. #define __BLOCK_MENU_H_
  7.  
  8. #include "blk.h"
  9. #include "textmenu.h"
  10.  
  11. class BlockMenu : public Block
  12.     {
  13.     public:
  14.     TextMenu* menu;
  15.  
  16.     BlockMenu(rect coordinates, char* fName = "", char* h = "",
  17.            int s = 0,
  18.            char* HOT = NULL,
  19.            char** ITEMSTRINGS = NULL,
  20.            rect STATUSPOS = rect(0, 24, 79, 25),
  21.            int STATUSTYPE = 0, char** STATUSSTRINGS = NULL,
  22.            int* STATUSLIST = NULL,
  23.            int res = FIXED, BORDERS b_type = SHOW_BORDER,
  24.            BORDERS hdr_b_type = SHOW_BORDER,
  25.            int pat = 0, int hdr_pat = 0, int elem_pat = 0,
  26.                int menu_pat = 0);
  27.  
  28.         virtual void hide();
  29.     void set_pos(int p) { menu->set_pos(p); }
  30.     virtual void rearrange();
  31.     };
  32.  
  33. #endif __BLOCK_MENU_H_